package com.lesso.zgs.sunflower.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.zgs.sunflower.pojo.dto.EmployeeAttendanceRuleDTO;
import com.lesso.zgs.sunflower.pojo.dto.EmployeeAttendanceRuleQueryDTO;
import com.lesso.zgs.sunflower.pojo.vo.EmployeeAttendanceRuleVO;

import java.util.List;

/**
 * <p>
 * 员工考勤规则关系 服务类
 * </p>
 *
 * @author zgs
 * @since 2025-07-03
 */
public interface IEmployeeAttendanceRuleService {

    /**
     * 为员工分配考勤规则
     */
    Integer assignRule(EmployeeAttendanceRuleDTO dto);

    /**
     * 取消员工考勤规则
     */
    Integer cancelRule(Long id);

    /**
     * 分页查询员工考勤规则关系
     */
    Page<EmployeeAttendanceRuleVO> page(EmployeeAttendanceRuleQueryDTO dto);

    /**
     * 根据员工ID查询考勤规则
     */
    List<EmployeeAttendanceRuleVO> getByEmployeeId(Long employeeId);
} 